package com.heartskyhigh.order.enums;

import lombok.Getter;

@Getter
public enum ResultEnum {

    OK(0, "success"),
    SERVER_ERROR(-1, "服务器异常"),
    PARAM_ERROR(1, "参数错误"),

    CART_EMPTY(2, "购物车为空"),
    ;

    private Integer code;
    private String msg;


    ResultEnum(Integer code, String msg) {
        this.code = code;
        this.msg = msg;
    }
}
